// 计算两门课程3次考试的平均成绩: 原始方法

#include <iostream>
using namespace std;

int main() {
    float math_sc1;
    float math_sc2;
    float math_sc3;
    float math_ave;

    float sci_sc1;
    float sci_sc2;
    float sci_sc3;
    float sci_ave;

    cout << "请输入数学三次考试的成绩: ";
    cin >> math_sc1 >> math_sc2 >> math_sc3;

    math_ave = (math_sc1 + math_sc2 + math_sc3) / 3.0f;
    cout << "数学三次考试的平均成绩是 " << math_ave << "\n";

    cout << "请输入科学三次考试的成绩: ";
    cin >> sci_sc1 >> sci_sc2 >> sci_sc3;

    sci_ave = (sci_sc1 + sci_sc2 + sci_sc3) / 3.0f;
    cout << "科学三次考试的平均成绩是 " << sci_ave << "\n";
}